import request from '@/utils/request'
// 组织树
export function queryTree() {
    return request({
      url:'/org/query/tree',
      method: 'GET',
    })
  }
// 组织删除
export function orgDelete(id) {
    return request({
      url:`/org/delete?id=${id}`,
      method: 'POST',
    })
  }
  //用户列表
  export function userList(data) {
    return request({
      url: '/user/list',
      method: 'POST',
      data
    })
  }
//保存组织
export function orgSave(data) {
    return request({
      url: '/org/save',
      method: 'post',
      data
    })
  }
//组织详情
export function orgDetail(id) {
  return request({
    url: `/org/detail?id=${id}`,
    method: 'post',
  })
}